 <#ftl encoding="UTF-8" />
            <div id="panelTop" style="position:relative; height:45px; background-color:#fff;">
                <div id="btnPanel_01" style="position:absolute; display:inline-block; top:12px; left: 8px; width:auto; padding:0px;">
                    <button type="button" name="_ButBack" id="ButBack" class="act__button" onclick="_InstancePageHeader.DoBack();"><i class="fa-all fa-1x fa-reply" style="margin-right:3px;"></i>返回</button>
                    <button type="button" name="_ButCheck" id="ButCheck" class="act__button" onclick="_InstancePageHeader.DoCheck();"><i class="fa-all fa-1x fa-eye" style="margin-right:3px;"></i>审核</button>
                    <button type="button" name="_ButUnCheck" id="ButUnCheck" class="act__button" onclick="_InstancePageHeader.Uncheck();"><i class="fa-all fa-1x fa-eraser" style="margin-right:3px;"></i>反审</button>
                    <button type="button" name="_ButPrint" id="ButPrint" class="act__button" onclick="_InstancePageHeader.DoPrintPreview();"><i class="fa-all fa-1x fa-print" style="margin-right:3px;"></i>打印预览</button>
                </div>
                <div id="rec_position" style="position:absolute; display:inline-block; right:80px; top:18px; width:auto;">
                    <span id="rec_cur_row">15</span> / <span id="rec_total_rows">15</span>
                </div>
                <div class="panel__toolbar" style="position:absolute; display:inline-block; top:12px; right:8px;">
                    <div class="panel__toolbar_item">
                        <button type="button" class="toolbar__button" name="_ButPrev" id="ButPrev" title="前一条" onclick="_InstancePageHeader.PrevRecord();"><i class="fa-all fa-1x fa-angle-left" style="margin-right:3px;"></i></button>
                    </div>
                    <div class="panel__toolbar_item" disabled="disabled">
                        <button type="button" class="toolbar__button" name="_ButNext" id="ButNext" title="后一条" onclick="_InstancePageHeader.NextRecord();"><i class="fa-all fa-1x fa-angle-right" style="margin-right:3px;"></i></button>
                    </div>
                </div>
            </div>
            
            <input id="Action" type="hidden" value="<#if action?exists>${action}<#else>0</#if>" />
            <input id="HeaderId" type="hidden" value="<#if headerId?exists>${headerId}<#else>0</#if>" />
            <div style="position:absolute; top:13px; right:200px;">
                <span id="CheckedTip" class="huzo_status huzo_status__green">状态：已审核</span>
            </div>
            
            <div id="slave_area" style="position:relative; top:0px; width:100%;">
                <ul id="tabPanelHeader" class="tabstrip" style="top:0px; width:100%;">
                    <li id="menu_01" class="tabInactive" style="margin-left:8px;">
                        <div>
                            <span class="tab_stretch"><span class="tabtext"><abbr class="ls_01">发货单</abbr></span></span>
                        </div>
                    </li>
                    <li id="menu_02">
                        <div>
                            <span class="tab_stretch"><span class="tabtext""><abbr class="ls_02">该款发令单明细</abbr></span></span>
                        </div>
                    </li>
                    <li id="menu_03">
                        <div>
                            <span class="tab_stretch"><span class="tabtext""><abbr class="ls_03">发货装箱明细</abbr></span></span>
                        </div>
                    </li>
                </ul>
                <div id="tabPanelContent" class="tab__wrapper">
                    <!-- 发货单-->
                    <div id="tab_wrapper_01" class="tab__content">
                        <form id="form_data" class="form__data_content">
                            <div id="btn_panel_01" style="position:relative; top:0px; height:50px; border-bottom:1px solid #ddd; background-color:#fff;">
                                <div id="btnPanel_01" style="position:absolute; display:inline-block; top:12px; left: 8px; width:auto; padding:0px;">
                                    <button type="button" name="_ButNew" id="ButNew" class="act__button" onclick="_InstancePageHeader.New();"><i class="fa-all fa-1x fa-plus" style="margin-right:3px;"></i>增加</button>
                                    <button type="button" name="_ButSave" id="ButSave" class="act__button act__save" onclick="_InstancePageHeader.Save();"><i class="fa-all fa-1x fa-save" style="margin-right:3px;"></i>保存</button>
                                </div>
                            </div>
                            <div class="data__table_wrapper">
                                <table class="data__table">
                                    <colgroup>
                                        <col style="width: 8%;" />
                                        <col style="width: 17%;" />
                                        <col style="width: 8%;" />
                                        <col style="width: 17%;" />
                                        <col style="width: 8%;" />
                                        <col style="width: 17%;" />
                                        <col style="width: 8%;" />
                                        <col />
                                    </colgroup>
                                    <tbody>
                                        <tr>
                                            <td class="td__label"><label>发货单号<em>★</em></label></td>
                                            <td>
                                                <input type="text" id="BillNo" name="_BillNo" tabindex="1" style="width:95%;" />
                                            </td>
                                            <td class="td__label"><label>发货发令单<em>★</em></label></td>
                                            <td>
                                                <input type="hidden" id="DoHeaderId" name="_DoHeaderId" value="" />
                                                <div id="ChoiceDo" class="form_input_dropdown_wrapper"  style="width:100%;" onclick="_InstancePageHeader.DoChoiceDo();">
                                                    <input type="text" id="DoBillNo" name="_DoBillNo" class="select-dropdown with_select_flag" style="color:#000;" tabindex="2" />
                                                </div>
                                            </td>
                                            <td class="td__label"><label for="StyleNo">款号<em>★</em></label></td>
                                            <td colspan="3">
                                                <select id="StyleNo" name="_StyleNo" tabindex="3" style="width:100%;">
                                                </select>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="td__label"><label for="CustomerName">客户</label></td>
                                            <td>
                                                <input type="text"" id="CustomerName" name="_CustomerName" readonly="readonly" style="width:95%;" tabindex="4" />
                                            </td>
                                            <td class="td__label"><label>发货日期</label></td>
                                            <td>
                                                <input type="text" id="DateOfDelivery" name="_DateOfDelivery" readonly="readonly" style="width:130px;" tabindex="5" />
                                            </td>
                                            <td class="td__label"><label for="GarmentFactoryName">加工厂<em>★</em></label></td>
                                            <td>
                                                <input type="hidden" id="GarmentFactoryId" name="_GarmentFactoryId" value="" />
                                                <div id="ChoiceGarmentFactory" class="form_input_dropdown_wrapper"  style="width:100%;" onclick="_InstancePageHeader.DoChoiceGarmentFactory();">
                                                    <input type="text" id="GarmentFactoryName" name="_GarmentFactoryName" class="select-dropdown with_select_flag" style="color:#000;" tabindex="6" />
                                                </div>
                                            </td>
                                            <td class="td__label"><label for="Destination">目的港</label></td>
                                            <td>
                                                <input type="text" id="Destination" name="_Destination" readonly="readonly" style="width:100%;" tabindex="7" value="" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="td__label"><label for="ShippingTypeName">运输方式</label></td>
                                            <td>
                                                <input type="text" id="ShippingTypeName" name="_ShippingTypeName" readonly="readonly" style="width:95%;" tabindex="8" value="" />
                                            </td>
                                            <td class="td__label"><label for="DutyManName">负责人</label></td>
                                            <td>
                                                <input type="text"" id="DutyManName" name="_DutyManName" readonly="readonly" style="width:95%;" tabindex="9" />
                                            </td>
                                            <td class="td__label"><label for="SoNo">主合同号</label></td>
                                            <td colspan="3">
                                                <input type="text" id="SoNo" name="_SoNo" readonly="readonly" style="width:100%;" tabindex="10" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="td__label"><label for="GrossWeight">毛重</label></td>
                                            <td>
                                                <input type="text" id="GrossWeight" name="_GrossWeight" style="width:95%;" tabindex="11" />
                                            </td>
                                            <td class="td__label"><label for="NetWeight">净重</label></td>
                                            <td>
                                                <input type="text" id="NetWeight" name="_NetWeight" style="width:95%;" tabindex="12" />
                                            </td>
                                            <td class="td__label"><label for="Cubage">体积</label></td>
                                            <td>
                                                <input type="text" id="Cubage" name="_Cubage" style="width:95%;" tabindex="13" />
                                            </td>
                                            <td class="td__label"><label for="InCase">箱装<em>★</em></label></td>
                                            <td>
                                                <input type="text" id="InCase" name="_InCase" style="width:130px;" tabindex="14" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="td__label" style="vertical-align:top; padding-top:8px;">
                                                <label for="Description">备注</label>
                                            </td>
                                            <td colspan="7">
                                                <textarea class="area" id="Description" name="_Description" rows="3" tabindex="15" style="width:100%; height:71px; resize:none;"></textarea>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="td__label">
                                                <label for="UpdatedByName">操作情况</label>
                                            </td>
                                            <td>
                                                <input type="text" id="UpdatedByName" name="_UpdatedByName" readonly="readonly" tabindex="16" value="<#if identityUser?exists>${identityUser.getEmployeeName()}</#if>"/ style="width:90px;">
                                                <input type="text" id="UpdatedDate" name="_UpdatedDate" readonly="readonly" tabindex="17" style="width:90px;" />
                                            </td>
                                            <td class="td__label">
                                                <label>审核情况</label>
                                            </td>
                                            <td colspan="5">
                                                <input type="text" id="CheckedByName" name="_CheckedByName" readonly="readonly" tabindex="18" value="<#if identityUser?exists>${identityUser.getEmployeeName()}</#if>"/ style="width:90px;">
                                                <input type="text" id="CheckedDate" name="_CheckedDate" readonly="readonly" tabindex="19" style="width:90px;" />
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </form>
                    </div>
                    <!-- 该款发令单明细 -->
                    <div id="tab_wrapper_02" class="tab__content" style="padding:0 8px; display:none;">
                        <div id="btn_panel_02" style="position:relative; padding:10px 0 0 0;">
                            <button type="button" id="ButNewDoLines" class="act__button act__save" onclick="_InstancePageLinesDo.ImportDeliveryCommandSheet($(this));"><i class="fa-all fa-1x fa-plus" style="margin-right:3px;"></i>增加</button>
                            <button type="button" id="ButSaveDoLines" class="act__button act__save" onclick="_InstancePageLinesDo.SaveLines($(this));"><i class="fa-all fa-1x fa-save" style="margin-right:3px;"></i>保存</button>
                            <button type="button" id="ButUpdateInCase" class="act__button act__save" onclick="_InstancePageLinesDo.UpdateInCase($(this));">批量更新箱装</button>
                        </div>
                        <div id="grid__wrapper_02" style="position:relative;">
                            <div id="panel_slave_data_02" style="position:relative; top:10px; width:100%;">
                                <table id="tabHeader21" class="layout display">
                                    <colgroup>
                                        <col style="width:27px;" />
                                        <col style="width:36px;" />
                                        <col style="width:36px;" />
                                        <col style="width:120px;" />
                                        <col style="width:260px;" />
                                        <col style="width:160px;" />
                                        <col style="width:120px;" />
                                        <col style="width:100px;" />
                                        <col style="width:70px;" />
                                        <col style="width:70px;" />
                                        <col style="width:80px;" />
                                        <col />
                                        <col style="width: 18px;" />
                                    </colgroup>
                                    <thead>
                                        <tr>
                                            <th>
                                                <label class="btn" for="CheckAll" style="margin-left:3px;"><input id="CheckAll" type="checkbox" onclick="_InstancePageLinesDo.DoCheckAll($(this),'_check_row');" /><i></i><span></span></label>
                                            </th>
                                            <th style="text-align:center;">#</th>
                                            <th style="text-align:center;">删除</th>
                                            <th>发货目的地</th>
                                            <th>款号</th>
                                            <th>品名</th>
                                            <th>颜色</th>
                                            <th style="text-align:center;">尺码</th>
                                            <th>数量</th>
                                            <th class="edit__column">箱装</th>
                                            <th class="edit__column">起始箱号</th>
                                            <th>唛头号</th>
                                            <th></th>
                                        </tr>
                                    </thead>
                                </table>
                                <div id="divD21" class="grid__data_wrapper" style="border-left:none; overflow-y:scroll;">
                                    <table id="tabData21" class="responsive__table" style="margin-top:-1px;">
                                        <colgroup>
                                            <col style="width:27px;" />
                                            <col style="width:36px;" />
                                            <col style="width:36px;" />
                                            <col style="width:120px;" />
                                            <col style="width:260px;" />
                                            <col style="width:160px;" />
                                            <col style="width:120px;" />
                                            <col style="width:100px;" />
                                            <col style="width:70px;" />
                                            <col style="width:70px;" />
                                            <col style="width:80px;" />
                                            <col />
                                        </colgroup>
                                        <tbody></tbody>
                                    </table>
                                </div>
                                <div id="wrapper__navbar_01" class="panel__nav_strip">
                                    <div style="position:relative; display:inline-block; padding:0px; height:30px; line-height:30px;">
                                        <span id="loading__indicator_01"><i class="fa fa-refresh fa-fw"></i></span>
                                        显示 <select id="page-size_01" onchange="_InstancePageLines.SetPageSize()">
                                            <option value="15">15</option>
                                            <option value="20">20</option>
                                            <option value="25">25</option>
                                        </select> 条 / 页
                                        <span id="page-first_01" class="p_first arrow page-first" data-action="first">首页</span>
                                        <span id="page-previous_01" class="p_previous arrow page-previous" data-action="previous">上一页</span>
                                        <abbr id="page_indicator_block_01" class="page_indicator_block" _msh_page="1" style="margin:0 10px; width:40px;">1 of 7</abbr>
                                        <span id="page-next_01" class="p_next arrow page-next" data-action="next">下一页</span>
                                        <span id="page-last_01" class="p_last arrow page-last" data-action="last">尾页</span>
                                        <input type="text" id="curr-page_01" class="curr-page" style="margin-left:15px; width:36px;" />
                                        <input type="button" name="btn_goto" id="but_goto_01" value="跳转" class="act__button page-goto" onclick="" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- 发货单明细 -->
                    <div id="tab_wrapper_03" class="tab__content" style="padding:0 8px; display:none;">
                        <div id="btn_panel_03" style="position:relative; padding:10px 0 0 0;">
                            <button type="button" id="ButNewLines" class="act__button act__save" onclick="_InstancePageLines.InsertNewRow();"><i class="fa-all fa-1x fa-plus" style="margin-right:3px;"></i>增加</button>
                            <button type="button" id="ButSaveLines" class="act__button act__save" onclick="_InstancePageLines.SaveLines();"><i class="fa-all fa-1x fa-save" style="margin-right:3px;"></i>保存</button>
                        </div>
                        <div id="grid__wrapper_03" style="position:relative;">
                            <div id="panel_slave_data_03" style="position:relative; top:10px; width:100%;">
                                <table id="tabHeader31" class="layout display">
                                    <colgroup>
                                        <col style="width:36px;" />
                                        <col style="width:50px;" />
                                        <col style="width:120px;" />
                                        <col style="width:270px;" />
                                        <col style="width:160px;" />
                                        <col style="width:60px;" />
                                        <col style="width:90px;" />
                                        <col style="width:120px;" />
                                        <col style="width:65px;" />
                                        <col style="width:60px;" />
                                        <col style="width:120px;" />
                                        <col />
                                        <col style="width: 18px;" />
                                    </colgroup>
                                    <thead>
                                        <tr>
                                            <th style="text-align:center;">删除</th>
                                            <th class="edit__column">箱号</th>
                                            <th class="edit__column">发货目的地</th>
                                            <th class="edit__column">款号</th>
                                            <th class="edit__column">品名</th>
                                            <th class="edit__column">色号</th>
                                            <th class="edit__column">颜色</th>
                                            <th class="edit__column">尺码</th>
                                            <th class="edit__column">箱内数</th>
                                            <th>箱装</th>
                                            <th class="edit__column">唛头号</th>
                                            <th class="edit__column">备注</th>
                                            <th></th>
                                        </tr>
                                    </thead>
                                </table>
                                <div id="divD31" class="grid__data_wrapper" style="border-left:none; overflow-y:scroll;">
                                    <table id="tabData31" class="responsive__table" style="margin-top:-1px;">
                                        <colgroup>
                                            <col style="width:36px;" />
                                            <col style="width:50px;" />
                                            <col style="width:120px;" />
                                            <col style="width:270px;" />
                                            <col style="width:160px;" />
                                            <col style="width:60px;" />
                                            <col style="width:90px;" />
                                            <col style="width:120px;" />
                                            <col style="width:65px;" />
                                            <col style="width:60px;" />
                                            <col style="width:120px;" />
                                            <col />
                                        </colgroup>
                                        <tbody></tbody>
                                    </table>
                                </div>
                                <div id="wrapper__navbar_02" class="panel__nav_strip">
                                    <div style="position:relative; display:inline-block; padding:0px; height:30px; line-height:30px;">
                                        <span id="loading__indicator_02"><i class="fa fa-refresh fa-fw"></i></span>
                                        显示 <select id="page-size_02" onchange="_InstancePageLines.SetPageSize()">
                                            <option value="15">15</option>
                                            <option value="20">20</option>
                                            <option value="25">25</option>
                                        </select> 条 / 页
                                        <span id="page-first_02" class="p_first arrow page-first" data-action="first">首页</span>
                                        <span id="page-previous_02" class="p_previous arrow page-previous" data-action="previous">上一页</span>
                                        <abbr id="page_indicator_block_02" class="page_indicator_block" _msh_page="1" style="margin:0 10px; width:40px;">1 of 7</abbr>
                                        <span id="page-next_02" class="p_next arrow page-next" data-action="next">下一页</span>
                                        <span id="page-last_02" class="p_last arrow page-last" data-action="last">尾页</span>
                                        <input type="text" id="curr-page_02" class="curr-page" style="margin-left:15px; width:36px;" />
                                        <input type="button" name="btn_goto" id="but_goto_02" value="跳转" class="act__button page-goto" onclick="" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
